#ifndef RTSPONDEMANDCLIENT_H
#define RTSPONDEMANDCLIENT_H

#include <iostream>
#include <string>
#include <pthread.h>

#include "RTSPStreamThread.h"
#include "M3uHandler.h"

using namespace std;

class RTSPonDemandClient
{
public:
	RTSPonDemandClient(string pgName);
	~RTSPonDemandClient();

	void initPlaylist();
	void getFirstChannelToPlay();
	void getNextChannelToPlay();

	void playAllThePlaylist();

private:
	Playlist* pl;
	Channel ch;

	string playlistFileName;
	string urlToPlay;
	int currentChannel;

	string progName;
	RTSPStreamThread* streamThread;
};


#endif
